// QList.cpp: implementation of the CQList class.
//
//////////////////////////////////////////////////////////////////////

#include "QList.h"

//////////////////////////////////////////////////////////////////////
EXPORT_C QVOID CQPlex::FreeDataChain()     // free this one and links
{
	CQPlex* p = this;
	CQPlex* pNext = QNULL;
	while (p != QNULL)
	{
		QBYTE* QBYTEs = (QBYTE*) p;
		pNext = p->m_pNext;
		delete[] QBYTEs;
		p = pNext;
	}
}
//
//EXPORT_C CQPlex * Create(CQPlex** ppHead, QUINT nMax, QUINT cbElement)
//{
//	ASSERT(nMax > 0 && cbElement > 0);
//	CQPlex* p = (CQPlex*) new QBYTE[sizeof(CQPlex) + nMax * cbElement];
//	if(QNULL == p)
//		return QNULL;
//
//	// may throw exception
//	p->m_pNext = *ppHead;
//	*ppHead = p;  // change head (adds in reverse order for simplicity)
//	return p;
//}





